/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.hxcx.top.modules.dvc.entity;

import org.hibernate.validator.constraints.Length;

import cn.hxcx.top.common.persistence.DataEntity;
import cn.hxcx.top.modules.sys.entity.Office;
import cn.hxcx.top.modules.sys.entity.User;

/**
 * 设备信息相关Entity
 * @author DoubleX
 * @version 2019-07-10
 */
public class DeviceInfo extends DataEntity<DeviceInfo> {
	
	private static final long serialVersionUID = 1L;
	private String deviceName;		// 设备名
	private String deviceStatus;		// 设备状态
	private Office deviceOffice;		// 所属部门
	private String deviceSort;		// 设备分类
	private String deviceDetail;		// 说明
	private String deviceImage;		// 图片
	private User deviceManager;		// 设备管理员
	
	public DeviceInfo() {
		super();
	}

	public DeviceInfo(String id){
		super(id);
	}

	@Length(min=1, max=255, message="设备名长度必须介于 1 和 255 之间")
	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	
	@Length(min=1, max=4, message="设备状态长度必须介于 1 和 4 之间")
	public String getDeviceStatus() {
		return deviceStatus;
	}

	public void setDeviceStatus(String deviceStatus) {
		this.deviceStatus = deviceStatus;
	}
	
	public Office getDeviceOffice() {
		return deviceOffice;
	}

	public void setDeviceOffice(Office deviceOffice) {
		this.deviceOffice = deviceOffice;
	}
	
	@Length(min=1, max=255, message="设备分类长度必须介于 1 和 255 之间")
	public String getDeviceSort() {
		return deviceSort;
	}

	public void setDeviceSort(String deviceSort) {
		this.deviceSort = deviceSort;
	}
	
	@Length(min=1, max=2000, message="说明长度必须介于 1 和 2000 之间")
	public String getDeviceDetail() {
		return deviceDetail;
	}

	public void setDeviceDetail(String deviceDetail) {
		this.deviceDetail = deviceDetail;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getDeviceImage() {
		return deviceImage;
	}

	public void setDeviceImage(String deviceImage) {
		this.deviceImage = deviceImage;
	}
	
	public User getDeviceManager() {
		return deviceManager;
	}

	public void setDeviceManager(User deviceManager) {
		this.deviceManager = deviceManager;
	}
	
}